Apple II
Sample Code Notes
_____________________________________________________________________________
                                                  Developer Technical Support


#5:    Custom.Window

Version:    1.0                                                September 1988

APW Components:    CustWind.Src                   18 Aug 88
                   CW.Inits.Src                   18 Aug 88
                   DefProc.1.Src                  18 Aug 88
                   DefProc.2.Src                  18 Aug 88
                   New Macros                     18 Aug 88
                   CustWind.Macros                18 Aug 88
                   CustWind                       30 Aug 88

MPW Components:    Custom.Window.Aii              01 Sep 88
                   Custom.Window.Inits.Aii        07 Jul 88
                   RoundRect.Window.Aii           18 Aug 88
                   Makefile                       08 Jun 88

This assembly language sample program generates two custom roundRect windows 
along with a standard window.  To illustrate how to specify different window 
attributes in source code, we designed the first window without a close box 
and do not allow it to be dragged.
_____________________________________________________________________________

The sample program also demonstrates how to use NULL events to maintain a 
clock in the menu bar.  Three Window Manager calls new to the Apple IIGS 
System Disk 3.2 are used in the demo as well:  AlertWindow, StartFrameDrawing, 
and EndFrameDrawing.  Several TaskMaster features are implemented in the 
definition procedures (DefProcs).  Frame grow boxes and scroll bars are not 
supported in this version of the Custom Window demo.

Use APW 1.0 and Apple IIGS System Disk 3.2 or later to execute the CustWind 
file included with the APW-compatible source code files.  To create a load 
file under APW, issue the following command:  ASML CustWind.Src Keep=CustWind.

MPW IIGS users need MPW 2.02, MPW IIGS Tools 1.0, and any version of the MPW 
IIGS assembler.  The program name needed by the MPW Build menu's Build option 
is Custom.Window.

